home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / comms / other / novia / src / include / novia_gui.h < prev    next >
C/C++ Source or Header  |  1999-12-06  |  9KB  |  303 lines

  1. #ifndef NOVIA_GUI_H
  2. #define NOVIA_GUI_H
  3. #define NOVIA_GUI_H_VERSION "$VER: 0.14 (01.06.1998)"
  4. // (c) Copyright 1996-1998 by Thorsten Gehler
  5. // All rights reserved. Read license.readme for copyright informations.
  6.  
  7. #ifndef NOVIA_PORTDATA_H
  8. #include <novia/novia_portdata.h>
  9. #endif
  10.  
  11. #ifndef NOVIA_USERDATA_H
  12. #include <novia/novia_userdata.h>
  13. #endif
  14.  
  15. #ifndef NOVIA_USERLIST_H
  16. #include <novia/novia_userlist.h>
  17. #endif
  18.  
  19. #define GUIID_MINMIN            101
  20. #define GUIID_SYSTEM_SERVICE    101
  21. #define GUIID_BASE                102
  22. #define GUIID_FILEBASE            103
  23. #define GUIID_CHAT_CHANNELS        104
  24. #define GUIID_NEWS                105
  25. #define GUIID_PFILES            106
  26. #define GUIID_GFILES            107
  27. #define GUIID_VOTES                108
  28. #define GUIID_AUSLASTUNG        109
  29. #define GUIID_CLIENT_LIST        110
  30. #define GUIID_USERINFO            111
  31. #define GUIID_PORTINFO            112
  32. #define GUIID_MAILBOX            113
  33. #define GUIID_SELECT_ALL        114
  34. #define GUIID_SELECT_NOTHING    115
  35. #define GUIID_CONFIG            116
  36. #define GUIID_ONLINE            117
  37. #define GUIID_OFFLINE            118
  38. #define GUIID_REMOVE            119
  39. #define GUIID_LOAD                120
  40. #define GUIID_ABOUT                121
  41. #define GUIID_ABOUTMUI            122
  42. #define GUIID_LOCKCONSULE        123
  43. #define GUIID_RESTARTSERVER        124
  44. #define GUIID_RESETSERVER        125
  45. #define GUIID_QUIT                126
  46. #define GUIID_LOCALLOGIN        127
  47. #define GUIID_NONEWUSERS        128
  48. #define GUIID_BUSYALLPORTS        129
  49. #define GUIID_DISABLEBASE        130
  50. #define GUIID_CONFIGBASE        131
  51. #define GUIID_DISABLEUDBASE        132
  52. #define GUIID_CONFIGUDBASE        133
  53. #define GUIID_CHATCHANNELS        134
  54. #define GUIID_DISABLECC            135
  55. #define GUIID_DISABLENEWS        136
  56. #define GUIID_CONFIGNEWS        137
  57. #define GUIID_DISABLEPFILES        138
  58. #define GUIID_CONFIGPFILES        139
  59. #define GUIID_DISABLEGFILES        140
  60. #define GUIID_CONFIGGFILES        141
  61. #define GUIID_DISABLEVOTES        142
  62. #define GUIID_CONFIGCONFIG        143
  63. #define GUIID_SS_CLIENTS_NEW    144
  64. #define GUIID_SS_CLIENTS_EDIT    145
  65. #define GUIID_SS_CLIENTS_REMOVE    146
  66. #define GUIID_SS_USERS_NEW        147
  67. #define GUIID_SS_USERS_EDIT        148
  68. #define GUIID_SS_USERS_REMOVE    149
  69. #define GUIID_SS_ACCEPT            150
  70. #define GUIID_SS_CANCEL            151
  71.  
  72. #define GUIID_CY_NETWORKCON        153
  73. #define GUIID_SCREENMODE        154
  74. #define GUIID_NEWREGISTER        155
  75. #define GUIID_SS_OPTIONS_        156
  76.  
  77. /****************** STRING RETURN ID's **********************/
  78.  
  79. #define GUIID_STR_Address        157
  80. #define GUIID_STR_PA_Screenmode    158
  81. #define GUIID_STR_PA_ScreenFont    159
  82. #define GUIID_STR_PA_TerminalFont    160
  83. #define GUIID_STR_PA_DeviceName        161
  84. #define GUIID_STR_SerConfig_UnitnoC                162
  85. #define GUIID_STR_ClientConfig_Baudrateidle        163
  86. #define GUIID_STR_Baudrateonline                164
  87. #define GUIID_STR_ClientConfig_Baudrateonline    165
  88. #define GUIID_STR_SerConfig_IOBuffer            166
  89. #define GUIID_STR_Modem_CONNECT                    167
  90. #define GUIID_STR_Modem_NOCARRIER                168
  91. #define GUIID_STR_Modem_NODIALTONE                169
  92. #define GUIID_STR_Modem_RING                    170
  93. #define GUIID_STR_Modem_BUSY                    171
  94. #define GUIID_STR_Modem_OK                        172
  95. #define GUIID_STR_Modem_TIMEOUT                    173
  96. #define GUIID_STR_Modem_ERROR                    174
  97. #define GUIID_STR_Commands_init                    175
  98. #define GUIID_STR_Commands_exit                    176
  99. #define GUIID_STR_Commands_hangup                177
  100. #define GUIID_STR_Dial_prefix                    178
  101. #define GUIID_STR_Dial_suffix                    179
  102. #define GUIID_STR_Answer_anscmd                    180
  103. #define GUIID_STR_PA_DeviceParallel                181
  104. #define GUIID_STR_SystemName                    182
  105. #define GUIID_STR_RegLocation                    183
  106. #define GUIID_STR_MainPortNumber                184
  107. #define GUIID_STR_UUCPDomain                    185
  108. #define GUIID_STR_SysopAccountNo                186
  109. #define GUIID_STR_DefaultAreaCode                187
  110. #define GUIID_STR_DefaultLocationNo                188
  111. #define GUIID_STR_DefaultCountryNo                189
  112. #define GUIID_STR_PA_OptionsFont                190
  113. #define GUIID_STR_SS_Clients_Filter                191
  114. #define GUIID_STR_SS_Clients_FilterCC            192
  115. #define GUIID_STR_RegNumber                        193
  116. #define GUIID_STR_Reg_Name                        194
  117. #define GUIID_STR_Reg_Location                    195
  118. #define GUIID_STR_Reg_Voicenumber                196
  119. #define GUIID_STR_Reg_Modem                        197
  120. #define GUIID_STR_Reg_EMail                        198
  121. #define GUIID_CH_CC_loadatstart                 199
  122. #define GUIID_BT_CC_Save                        200
  123. #define GUIID_BT_CC_Use                            201
  124. #define GUIID_BT_CC_Cancel                        202
  125. #define GUIID_DC_CLIENT_LIST                    203
  126. #define GUIID_DC_SS_CLIENT_LIST                    204
  127. #define GUIID_DC_SS_USERS                        205
  128. #define GUIID_CL_OK                                206
  129. #define GUIID_CL_CANCEL                            207
  130. #define GUIID_SS_CLOSEWIN                        208
  131. #define GUIID_USER_CLOSEWIN                        209
  132. #define GUIID_SS_TCP_MAILBOX_NEW                210
  133. #define GUIID_SS_TCP_MAILBOX_REMOVE                212
  134. #define GUIID_SS_TCP_MAILBOX_USER_NEW            215
  135. #define GUIID_SS_TCP_MAILBOX_USER_CHANGENAME    216
  136. #define GUIID_SS_TCP_MAILBOX_USER_REMOVE        217
  137. #define GUIID_SS_TCP_POP3_NEW                    220
  138. #define GUIID_SS_TCP_POP3_REMOVE                221
  139. #define GUIID_SS_TCP_MAILBOX_NAME                222
  140. #define GUIID_CC_CLOSEWIN                        225
  141.  
  142. #define GUIID_REMINDER_NEW                        400
  143. #define GUIID_REMINDER_ADD                        401
  144. #define GUIID_REMINDER_REMOVE                    402
  145. #define GUIID_REMINDER_TIME                        403
  146. #define GUIID_REMINDER_INTERNAL                    404
  147. #define GUIID_REMINDER_INTERVAL                    405
  148. #define GUIID_REMINDER_DAILY                    406
  149. #define GUIID_REMINDER_MON                        407
  150. #define GUIID_REMINDER_THU                        408
  151. #define GUIID_REMINDER_WEN                        409
  152. #define GUIID_REMINDER_TUR                        410
  153. #define GUIID_REMINDER_FRI                        411
  154. #define GUIID_REMINDER_SAT                        412
  155. #define GUIID_REMINDER_SUN                        413
  156. #define GUIID_REMINDER_WEEKLY                    414
  157. #define GUIID_REMINDER_1WEEK                    415
  158. #define GUIID_REMINDER_2WEEK                    416
  159. #define GUIID_REMINDER_3WEEK                    417
  160. #define GUIID_REMINDER_4WEEK                    418
  161. #define GUIID_REMINDER_5WEEK                    419
  162. #define GUIID_REMINDER_MONTHLY                    420
  163. #define GUIID_REMINDER_1MONTH                    421
  164. #define GUIID_REMINDER_2MONTH                    422
  165. #define GUIID_REMINDER_3MONTH                    423
  166. #define GUIID_REMINDER_4MONTH                    424
  167. #define GUIID_REMINDER_5MONTH                    425
  168. #define GUIID_REMINDER_6MONTH                    426
  169. #define GUIID_REMINDER_7MONTH                    427
  170. #define GUIID_REMINDER_8MONTH                    428
  171. #define GUIID_REMINDER_9MONTH                    429
  172. #define GUIID_REMINDER_10MONTH                    430
  173. #define GUIID_REMINDER_11MONTH                    431
  174. #define GUIID_REMINDER_12MONTH                    432
  175. #define GUIID_REMINDER_USEDATE                    433
  176. #define GUIID_REMINDER_DATE                        434
  177. #define GUIID_REMINDER_TYPE                        435
  178. #define GUIID_REMINDER_CLOSEPORT                436
  179. #define GUIID_REMINDER_NAME                        437
  180. #define GUIID_REMINDER_INTERVALTYPE                480
  181. #define GUIID_REMINDER_HOLIDAYS                    481
  182. #define GUIID_REMINDER_DATETYPE                    482
  183. #define GUIID_REMINDER_COPY                        483
  184. #define GUIID_REMINDER_UPDATE                    484
  185. #define GUIID_REMINDER_TEST                        485
  186.  
  187. #define GUIMSG_CLOSE_FRONT_END                    1000
  188. #define GUIMSG_CLOSE_MAINPORT                    1001
  189. #define GUIMSG_CLOSE_FAIL20                        1002
  190. #define GUIMSG_CLOSE_OK                            1003
  191. #define GUIMSG_CLOSE_WAIT_FOR_CLOSE_CMD    0x104
  192.  
  193. #define GUIMSG_CLIENT_ADD                        2000
  194. #define GUIMSG_CLIENT_REMOVE                    2001
  195. #define GUIMSG_CLIENT_CHANGE                    2002    // change status
  196.  
  197. #define GUIMSG_CLIENT_NEW                        2010
  198. #define GUIMSG_CLIENT_EDIT                        2011
  199.  
  200. #define GUIMSG_CLIENT_CANCEL                    2020
  201. #define GUIMSG_CLIENT_SAVE                        2021
  202. #define GUIMSG_CLIENT_USE                        2022
  203.  
  204. #define GUIMSG_CLIENT_ONLINE                    2030
  205. #define GUIMSG_CLIENT_OFFLINE                    2031
  206. #define GUIMSG_CLIENT_UNLOAD                    2032
  207.  
  208. #define GUIMSG_CLIENTLIST_REFRESH                2100
  209.  
  210. #define GUIMSG_CLIENT_TOFRONT                    2200
  211.  
  212. #define GUIMSG_REPLY_ERROR                        10000
  213. #define GUIMSG_REPLY_TIMEOUT                    10001
  214.  
  215. #define GUIMSG_REPLY                            10005
  216.  
  217. #define GUIMSG_FRONTEND_INIT                    20000
  218. #define GUIMSG_REPLY_FE_INIT                    20001
  219. #define GUIMSG_FE_STRUCT_INIT                    20005
  220. #define GUIMSG_FE_STRUCT_REFRESH                20006
  221. #define GUIMSG_INIT_FAIL                        20010
  222.  
  223. #define GUIMSG_ABOUT                            25000
  224. #define GUIMSG_QUIT                                25001
  225. #define GUIMSG_LOCKCONSULE                        25002
  226.  
  227. #define GUIMSG_MPCONFIG_LOAD                    30005
  228. #define GUIMSG_MPCONFIG_SAVE                    30006
  229. #define GUIMSG_MPCONFIG_USE                        30007
  230.  
  231. #define GUIMSG_REDRAW_REMINDERLIST                30050
  232.  
  233. #define GUICMD_LIST_CLEAR                        30200
  234. #define GUICMD_LIST_REPLACE                        30201
  235. #define GUICMD_LIST_CHANGE_ENTRYS                30202
  236.  
  237.  
  238. /************************** PRIVATE NOVIA_GUI ****************/
  239.  
  240.  
  241. #define FD_MUI_SCONFIG_ADDRESS_LOCAL        0
  242. #define FD_MUI_SCONFIG_ADDRESS_SERIAL        1
  243. #define FD_MUI_SCONFIG_ADDRESS_PARALLEL        2
  244. #define FD_MUI_SCONFIG_ADDRESS_TCPIP        3
  245. #define FD_MUI_SCONFIG_ADDRESS_ENVOY        4
  246. #define FD_MUI_SCONFIG_ADDRESS_NOVELL        5
  247. #define FD_MUI_SCONFIG_ADDRESS_MSN            6
  248.  
  249.  
  250. /************************** PUPLIC STRUCTURES ****************/
  251.  
  252. struct GUIMsg
  253. {
  254.     struct     Message msg;            // Std Exec-Message Structure
  255.     struct     GUIMsg *ln_Succ;
  256.     struct    GUIMsg *ln_Pred;        /* Node fot internal use.
  257.                                         Falls irgendein Programm vergessen hat, eine Message zurück
  258.                                         zu senden, kann der Speicher, falls dieser knapp ist
  259.                                         mit hilfe der gui_msg_list wieder frei gegeben werden.*/
  260.     ULONG            cmdid;            // Type of Message
  261.     ULONG            cmdid2;
  262.     APTR            data;            /* pointer to data. Da das GUIFrontend und der Mainport in
  263.                                         normalerweise auf einem Rechner laufen, brauchen die Daten
  264.                                         nicht an die Message angehängt werden. */
  265.                                     
  266. };
  267.  
  268. struct GUIMsgList
  269. {
  270.     struct GUIMsg *first;
  271.     struct GUIMsg *last;
  272.     ULONG  entrys;
  273. };
  274.  
  275. struct List_Entry
  276. {
  277.     struct Node *    ln_Succ;    // Nodestruct
  278.     struct Node *    ln_Pred;
  279.     ULONG            entryno;    // number of entry in List
  280.     APTR            data;        // pointer to PortData or UserData... etc
  281.     char            text[80];    // String in List
  282. };
  283.  
  284. struct GUIFrontendOld {
  285.     struct     MainPortConfig    *MainPortConfig;    // MainPortConfiguration
  286.     struct    List            *clist;                // ClientList
  287.     struct    PortData        *cport;                // Pointer of cport-structure
  288.     struct    List            *lockStructures;    // Pointer of lock-structure
  289.     ULONG                    *numberofclients;    // number of clients
  290.     };
  291.  
  292. struct GUIFrontend
  293. {
  294.     struct    PortData *mport;
  295.     char    ProgramClose;
  296.     char    GUIOpen;
  297. };
  298.  
  299. #endif
  300.  
  301.  
  302.  
  303.